home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_06
/
9n06031a
< prev
next >
Wrap
Text File
|
1991-04-01
|
402b
|
21 lines
/* Assume "Smith" and "John" were
assigned earlier to the string
variables Last and First */
int stat_length, status;
char statement[100];
sprintf (statement,
"SELECT Phone, Dept^Code "
"FROM Employees "
"WHERE Last^Name = '%s' "
"AND First^Name = '%s'",
Last, First);
stat_length = strlen(statement);
status = XQLCompile (cursorID,
stat_length, statement);